{capture name="hidden"}	
{/capture}
{capture name="fields"}
	<!-- * -->
	<table width="100%" cellpadding="0" cellspacing="0">
		<tr>
			<td height="1" bgcolor="#FFFFFF"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
		</tr>
	</table>
	<table width="100%" cellpadding="0" cellspacing="0">
		<tr>
			<td height="3"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
		</tr>
	</table>
	<table width="100%" cellpadding="0" cellspacing="0">
		<tr>
			<td height="1" bgcolor="#D6DBDE"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
		</tr>
	</table>
	<!-- /* -->
	{ext->class_function class="contacts" assign="is_contacts"}
	{if $is_contacts == 1}
		{ext->class_function class="contacts" func="get_all_product_groups" assign="groups_list"}
		{ext->aasort array=$groups_list args="+name" assign="groups_list2"}
		{assign var="groups_list" value=$groups_list2}
		{ext->class_function class="contacts" func="get_product_group_data" group=$smarty.get.group_id assign="group_data"}
		{foreach from=$groups_list item="el"}
			{if $el.parent == 0}
				<!-- * -->
				<table width="100%" cellpadding="0" cellspacing="0">
					<tr>
						<td height="1" bgcolor="#FFFFFF"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
					</tr>
				</table>
				<table cellpadding="0" cellspacing="0">
					<tr>		
						<td width="5"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
						<td height="22" width="0"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
						<td width="1"><img src="_tvs_system_core_/design/img/document_copy.gif"></td>
						<td width="5"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
						<td>{$el.name}</td>			
					</tr>
				</table>
				<table width="100%" cellpadding="0" cellspacing="0">
					<tr>
						<td height="1" bgcolor="#D6DBDE"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
					</tr>
				</table>
				{foreach from=$groups_list item="el2"}
					{if $el2.parent == $el.id}
						<table width="100%" cellpadding="0" cellspacing="0">
							<tr>
								<td height="1" bgcolor="#FFFFFF"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
							</tr>
						</table>
						<table cellpadding="0" cellspacing="0">
							<tr>		
								<td width="5"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
								<td height="22" width="20"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
								<td width="1"><img src="_tvs_system_core_/design/img/document_copy.gif"></td>
								<td width="5"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
								<td>
									{if $group_data.type == $el2.type}
										<a href="#" onClick="top.opener.window.document.forms['child_list']['mod'].value='product'; top.opener.window.document.forms['child_list']['parent'].value='{$el2.id}'; top.opener.window.document.forms['child_list']['act'].value='copy'; top.opener.window.document.forms['child_list']['module'].value='contacts'; top.opener.window.document.forms['child_list'].submit(); window.close();" class="blackUnderline">{$el2.name}</a>
									{else}
										{$el2.name}
									{/if}
								</td>			
							</tr>
						</table>
						<table width="100%" cellpadding="0" cellspacing="0">
							<tr>
								<td height="1" bgcolor="#D6DBDE"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
							</tr>
						</table>
					{/if}
				{/foreach}
				<!-- /* -->
			{/if}
		{/foreach}
	{/if}
{/capture}


